home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / sat / msat09.tgz / ALOG.H next >
Text File  |  1994-09-17  |  4KB  |  92 lines

  1.  
  2. /* Note - first three elements must be present and in the same order */
  3.  
  4. struct ALOG_1 {
  5.     unsigned char event    __attribute__ ((packed));    /* event code */
  6.     unsigned char len    __attribute__ ((packed));    /* length of entry */
  7.     unsigned long tstamp    __attribute__ ((packed));    /* time stamp */
  8.     unsigned short serial_no __attribute__ ((packed));    /* serial number */
  9.     unsigned char rxchan    __attribute__ ((packed));    /* rx channel */
  10. };
  11.  
  12.  
  13. struct ALOG_1F {
  14.     unsigned char event    __attribute__ ((packed));    /* event code */
  15.     unsigned char len    __attribute__ ((packed));    /* length of entry */
  16.     unsigned long tstamp    __attribute__ ((packed));    /* time stamp */
  17.     unsigned short serial_no __attribute__ ((packed));    /* serial number */
  18.     unsigned char rxchan    __attribute__ ((packed));    /* rx channel */
  19.     unsigned long var1    __attribute__ ((packed));
  20.     unsigned long var2    __attribute__ ((packed));
  21.     unsigned long var3    __attribute__ ((packed));
  22.     unsigned long var4    __attribute__ ((packed));
  23.     unsigned long var5    __attribute__ ((packed));
  24.     unsigned long var6    __attribute__ ((packed));
  25.  
  26. };
  27.  
  28. struct ALOG_2 {
  29.     unsigned char event    __attribute__ ((packed));    /* event code */
  30.     unsigned char len    __attribute__ ((packed));    /* length of entry */
  31.     unsigned long tstamp    __attribute__ ((packed));    /* time stamp */
  32.     unsigned short serial_no __attribute__ ((packed));    /* serial number */
  33.     unsigned char rxchan    __attribute__ ((packed));    /* rx channel */
  34.     unsigned char call[6]    __attribute__ ((packed));    /* callsign */
  35.     unsigned char ssid    __attribute__ ((packed));    /* ssid */
  36. };
  37.  
  38. struct ALOG_2F {
  39.     unsigned char event    __attribute__ ((packed));    /* event code */
  40.     unsigned char len    __attribute__ ((packed));    /* length of entry */
  41.     unsigned long tstamp    __attribute__ ((packed));    /* time stamp */
  42.     unsigned short serial_no __attribute__ ((packed));    /* serial number */
  43.     unsigned char rxchan    __attribute__ ((packed));    /* rx channel */
  44.     unsigned char call[6]    __attribute__ ((packed));    /* callsign */
  45.     unsigned char ssid    __attribute__ ((packed));    /* ssid */
  46.     unsigned long var1    __attribute__ ((packed));
  47.     unsigned long var2    __attribute__ ((packed));
  48.     unsigned long var3    __attribute__ ((packed));
  49.     unsigned long var4    __attribute__ ((packed));
  50.     unsigned long var5    __attribute__ ((packed));
  51.     unsigned long var6    __attribute__ ((packed));
  52. };
  53.  
  54.  
  55.  
  56. #define ALOG_FTL0_STARTUP 1        /* ftl0 startup */
  57. #define ALOG_FTL0_SHUTDOWN 2        /* ftl0 shutdown */
  58. #define ALOG_START_SESSION 3        /* user logon */
  59. #define ALOG_CLOSE_SESSION 4        /* user logout */
  60. #define ALOG_DISCONNECT 5        /* user timedout */
  61. #define ALOG_USER_REFUSED 6        /* user refused (max sessions) */
  62. #define ALOG_BCAST_START  7        /* added to list */
  63. #define ALOG_BCAST_STOP 8        /* removed from list */
  64. #define ALOG_DISKSPACE 9        /* free disk space */
  65. #define ALOG_FILE_DELETE 10        /* file deleted */
  66. #define ALOG_FILE_DOWNLOAD 11        /* file download */
  67. #define ALOG_FILE_UPLOAD 12        /* file upload */
  68. #define ALOG_BBS_SHUT 13        /* BBS is shut */
  69. #define ALOG_BBS_OPEN 14        /* BBS is open */
  70. #define ALOG_DIR 15            /* directory request */
  71. #define ALOG_SELECT 16            /* Select */
  72. #define ALOG_FILE_REMOVED 17         /* Autodelete */
  73. #define ALOG_FILE_NOT_REMOVED 18    /* Autodelete failed */
  74. #define ALOG_END_DOWNLOAD 19        /* End of download */
  75. #define ALOG_END_UPLOAD 20        /* End of download */
  76. #define ALOG_END_DIR    21        /* end of downloading dir file */
  77. #define ALOG_SELECT_DONE 22        /* End of select */
  78.  
  79. /* Disconnect reasons */
  80. #define DC_TIMEOUT 1l
  81. #define DC_IN_ULOK 2l
  82. #define DC_IN_DLOK 3l
  83. #define DC_IN_DLEND 4l
  84. #define DC_IN_ULRX 5l
  85. #define DC_UNKNOWN_PKT 6l
  86. #define DC_PKT_TOO_BIG 7l
  87.  
  88. #define ALOG_FTYPE 0x0c            /* pfh file type */
  89.  
  90. unsigned write_alog(void *,int);
  91.  
  92.